<?php
// +----------------------------------------------------------------------
// | ThinkPHP [ WE CAN DO IT JUST THINK ]
// +----------------------------------------------------------------------
// | Copyright (c) 2006~2018 http://thinkphp.cn All rights reserved.
// +----------------------------------------------------------------------
// | Licensed ( http://www.apache.org/licenses/LICENSE-2.0 )
// +----------------------------------------------------------------------
// | Author: liu21st <liu21st@gmail.com>
// +----------------------------------------------------------------------
use think\facade\Route;

Route::get('think', function () {
    return 'hello,ThinkPHP6!';
});

Route::get('hello/:name', 'index/hello');

// TP Babycar 订单管理路由
Route::group('admin', function () {
    Route::group('babycar_order', function () {
        Route::get('list', 'admin.BabycarOrder/list');
        Route::get('detail/:order_id', 'admin.BabycarOrder/detail');
        Route::delete('delete/:order_id', 'admin.BabycarOrder/delete');
    });

    // TP Babycar 套餐管理路由
    Route::group('babycar_package', function () {
        Route::get('list', 'admin.BabycarPackage/list');
        Route::get('detail/:package_id', 'admin.BabycarPackage/detail');
        Route::post('create', 'admin.BabycarPackage/create');
        Route::put('update/:package_id', 'admin.BabycarPackage/update');
        Route::delete('delete/:package_id', 'admin.BabycarPackage/delete');
    });
});
